﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LuanVanProject
{
    public partial class PDFViewer : Viewer
    {
        string fileName;
        bool isFine = true;
        public PDFViewer(string filename)
        {
            isFine=  InitializeComponent();
            this.fileName = filename;
        }

        public override int Open()
        {
            if (isFine)
            {
                axAcroPDF1.LoadFile(fileName);
                return 1;
            }
            else {
                return -1;
            }
       
        }
      
    }
}
